SET (ATTESTER_SOURCE_FILES main.cpp)

# settings for Microsoft Visual C++
IF(CMAKE_CXX_COMPILER MATCHES cl)
	IF(CMAKE_GENERATOR STREQUAL "Visual Studio 9 2008")
		SET(CMAKE_CXX_FLAGS "/nologo /W3 /Gy /EHsc")
		SET(CMAKE_CXX_FLAGS_DEBUG "/MTd /ZI /Od")
		SET(CMAKE_CXX_FLAGS_RELEASE "/MT /O2")
	ENDIF(CMAKE_GENERATOR STREQUAL "Visual Studio 9 2008")
ENDIF(CMAKE_CXX_COMPILER MATCHES cl)

include_directories (${ATTEST_SOURCE_DIR}/src)

IF(CMAKE_BUILD_TYPE STREQUAL "Release")
	add_definitions(${ATTESTER_PLATFORM_DEFINE} -DNDEBUG -DQT_NO_DEBUG -DUNICODE -D_UNICODE)
ELSE()
	add_definitions(${ATTESTER_PLATFORM_DEFINE} -DDEBUG -DQT_DEBUG -DUNICODE -D_UNICODE)
ENDIF()

add_executable (tester ${ATTESTER_SOURCE_FILES})
target_link_libraries (tester attest)

